package com.zdemo.pressure;

import java.util.concurrent.ThreadFactory;

public class RequestThreadFactory implements ThreadFactory {

	private final String poolName;

	public RequestThreadFactory(String poolName) {
		this.poolName = poolName;
	}

	@Override
	public Thread newThread(Runnable r) {
		return new RequestThread(r, poolName);
	}

}
